﻿
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using BLL;

namespace BO
{
    public partial class Account
    {
        [EntityRef("Posts", BLL.Posts.Columns.AccountID)]
        public List<Post> Posts { get; set; }


    }
    public partial class FBPage
    {
        [EntityRef("Posts", BLL.Posts.Columns.PageID)]
        public List<Post> Posts { get; set; }


    }
    public partial class Post
    {
        [EntityRef("Posts", BLL.Posts.Columns.ParentID)]
        public Post ParentPost { get; set; }

        [EntityRef("Posts", BLL.Posts.Columns.ParentID)]
        public List<Post> ChildPosts { get; set; }

        [EntityRef("Accounts", BLL.Posts.Columns.AccountID)]
        public Account Account { get; set; }

        [EntityRef("FBPages", BLL.Posts.Columns.PageID)]
        public FBPage FBPage { get; set; }

        [EntityRef("Posts", BLL.Posts.Columns.ParentID)]
        public List<Post> Posts { get; set; }


    }
}